<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
    <title>社团之家 | Home </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<style>.size{height:200px;width:200px;}</style>>
    <link href="/study/Public/css/style.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/study/Public/css/owl.carousel.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/study/Public/css/magnific-popup.css">
    <link href="/study/Public/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <script type="text/javascript" src="/study/Public/bootstrap/js/jquery.min.js"></script>
    <script src="/study/Public/bootstrap/js/bootstrap.min.js"></script>

    <script src="/study/Public/js/owl.carousel.js"></script>
    <script>
        $(document).ready(function() {
            $("#owl-demo").owlCarousel({
                items : 4,
                lazyLoad : true,
                autoPlay : true,
                navigation : true,
                navigationText : ["", ""],
                rewindNav : false,
                scrollPerPage : false,
                pagination : false,
                paginationNumbers : false,
            });
        });
    </script>
    <link type="text/css" rel="stylesheet" href="/study/Public/css/jquery.mmenu.all.css" />
    <script type="text/javascript" src="/study/Public/js/jquery.mmenu.js"></script>
    <script type="text/javascript">
        //	The menu on the left
        $(function() {
            $('nav#menu-left').mmenu();
        });
    </script>
</head>
<body>
<!-- start header -->
<div class="header_bg">
    <div class="wrap">
        <div class="header">
            <div class="logo">
                <a href="index.html">
                    <img src="/study/Public/images/lg.png" alt=""/>
                    <h1>社团之家</h1>
                    <div class="clear"> </div>
                </a>
            </div>
            
            <div class="clear"> </div>
        </div>
    </div>
</div>

<div class="header_btm">
    <div class="wrap">
  
        <div id="page">
            <div id="header">
                <a class="navicon" href="#menu-left"> </a>
            </div>
            <nav id="menu-left">
                <ul>
                    <li class="active"><a href="index.html">Home</a></li>
                    <li><a href="stshow.html">社团展示</a></li>
                    <li><a href="hdshow.html">活动展示</a></li>
                    <li><a href="dtshow">新闻动态</a></li>
                    <?php if(session('username') != null): ?><li><a href="myinfo.html">个人中心</a></li>
                    <?php else: ?> <li><a href="index.html">个人中心</a></li><?php endif; ?>
                    <li><a href="contact.html">联系我们</a></li>
                    <?php if(session('username') == null): ?><li><a href="#regModal" data-toggle="modal"  data-target="#regModal">注册</a></li>
                        <li><a  href="#regModal" data-toggle="modal"  data-target="#myModal2">登录</a></li>
                        <?php else: ?>
                        <li><a href="logout">注销</a></li>
                        <li class="active"><a href=""><?php echo '欢迎'.session('username') ?></a></li><?php endif; ?>
                </ul>
            </nav>
        </div>
        <div class="header_sub">
            <div class="h_menu">
                <ul>
                    <li class="active"><a href="index.html">Home</a></li>
                    <li><a href="stshow.html">社团展示</a></li>
                    <li><a href="hdshow.html">活动展示</a></li>
                    <li><a href="dtshow">新闻动态</a></li>
                    <?php if(session('username') != null): ?><li><a href="myinfo.html">个人中心</a></li>
                    <?php else: ?> <li><a href="index.html">个人中心</a></li><?php endif; ?>
                    <li><a href="contact.html">联系我们</a></li>
                    <?php if(session('username') == null): ?><li><a href="#regModal" data-toggle="modal"  data-target="#regModal">注册</a></li>
                        <li><a  href="#regModal" data-toggle="modal"  data-target="#myModal2">登录</a></li>
                        <?php else: ?>
                        <li><a href="logout">注销</a></li>
                        <li class="active"><a href=""><?php echo '欢迎'.session('username') ?></a></li><?php endif; ?>
                </ul>
            </div>
            <div class="h_search">
                <form>
                    <input type="text" value="" placeholder="search something...">
                    <input type="submit" value="">
                </form>
            </div>
            <div class="clear"> </div>
        </div>
    </div>
</div>
<div class="container">
<div class="row row-offcanvas row-offcanvas-right">
<div class="col-xs-12 col-sm-9">
<div class="row text-center">
<div class="col-xs-12 col-lg-12 mlist">
<h2 >热门社团推荐</h2>
<ul class="list-inline row text-center">
<?php if(is_array($practices)): $i = 0; $__LIST__ = $practices;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class="col-xs-5 col-sm-4 col-lg-3">
<img class="size" src="/study/Public/Uploads/photo/<?php echo ($vo["photo"]); ?>">
<p><a href="stxq?id=<?php echo ($vo["gid"]); ?>"><?php echo ($vo["groupname"]); ?></a></p>
</li><?php endforeach; endif; else: echo "" ;endif; ?>
</ul></div></div></div>
<div class="col-xs-6 col-sm-2 sidebar-offcanvas" id="sidebar">
<div class="list-group">
<h2 align="center">点击排行</h2>
<ul class="list-inline row text-center">
<?php if(is_array($pm)): $i = 0; $__LIST__ = $pm;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$to): $mod = ($i % 2 );++$i;?><li class="col-xs-12 col-lg-10">
<img class="size" src="/study/Public/Uploads/photo/<?php echo ($to["photo"]); ?>"class="responsive img-thumbnail" >
<p><a href="stxq?id=<?php echo ($to["gid"]); ?>"><?php echo ($to["groupname"]); ?></a><br>点击量：<?php echo ($to["hit"]); ?></p>
</li><?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close"
                        data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    用户注册
                </h4>
            </div>
            <div class="modal-body">
                <form  method="post" action="register" enctype="multipart/form-data" class="form-horizontal">
        <div class="form-group">
        <label for="inputName" class="col-md-2 control-label">用户名</label>
        <div class="col-md-10">
        <input type="text" class="form-control" id="username"  name="username"  placeholder="Name"/>
        </div></div>
        <div class="form-group">
        <label for="inputpass" class="col-md-2 control-label">密码</label>
        <div class="col-md-10">
        <input type="password" class="form-control" id="pass"  name="pass"  placeholder="pass"/>
    </div>
    </div>
     <div class="form-group">
        <label for="inputpass" class="col-md-2 control-label">再次输入密码</label>
        <div class="col-md-10">
        <input type="password" class="form-control" id="pass2"  name="pass2" value="<?php echo ($user["pass"]); ?>" placeholder="pass2"/>
    </div>
    </div> 
<div class="form-group">
        <label for="inputName" class="col-md-2 control-label">真实性名</label>
        <div class="col-md-10">
        <input type="text" class="form-control" id="realname"  name="realname"  placeholder="Name"/>
    </div>
    </div>
<div class="form-group">
        <label for="Email" class="col-md-2 control-label">邮箱</label>
        <div class="col-md-10">
        <input type="email" class="form-control" id="email"  name="email"  placeholder="email"/>
    </div>
    </div>
    <div class="form-group">
        <label for="tele" class="col-md-2 control-label">电话</label>
        <div class="col-md-10">
        <input type="tel" class="form-control" id="tele"  name="tele"  placeholder="tele"/>
    </div>
</div>
<div class="form-group">
        <label for="pic" class="col-md-2 control-label">头像</label>
        <div class="col-md-10">
            <input type="file" name="photo" />
        </div>
    </div>
       
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="submit" class="btn btn-primary">注册</button>
            </div>

    </div>
        </div>
    </div>   
</div><!-- /.modal-content -->

 </form>


</body>
</html>